home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCGUIA 117
/
PC Guia 117.iso
/
Software
/
Utils
/
Software2
/
Product18
/
Setup.exe
/
wysiwordpress.php
< prev
Wrap
PHP Script
|
2005-04-05
|
989b
|
27 lines
<?
/*
Plugin Name: WYSI-Wordpress
Plugin URI: http://mudbomb.com/
Description: This plugin adds a WYSIWYG editor to the advanced editing screen of Wordpress, allowing you to edit posts as you would in any word processor application. It also includes an image uploader and manager.
Version: 2.0
Author: MudBomb.com
Author URI: http://mudbomb.com/
*/
ob_start('nuke_the_quicktags');
function nuke_the_quicktags( $lookmanoqtags ) {
$lookmanoqtags = preg_replace('|<div id="quicktags">.*?</div>|s', '', $lookmanoqtags);
return $lookmanoqtags;
}
function wysiwordpress()
{
?><script language="javascript" type="text/javascript" src="../wp-content/plugins/Wysi-Wordpress/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="../wp-content/plugins/Wysi-Wordpress/wordpress.js"></script>
<?
}
add_action('edit_form_advanced','wysiwordpress');
add_action('edit_page_form','wysiwordpress');
add_action('simple_edit_form','wysiwordpress');
?>